<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("系统参数列表")}</title>
<link href="/resources/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/resources/js/reference/jquery.js"></script>
<script type="text/javascript" src="/resources/js/base/dialog.js"></script>
<script type="text/javascript" src="/resources/js/base/request.js"></script>
<script type="text/javascript" src="/resources/js/base/global.js"></script>
<script type="text/javascript" src="/resources/js/reference/mmGrid.js"></script>
<link href="/resources/css/mmGrid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$().ready(function() {

	var cols = [
		{ title:'${message("参数编码")}', name:'code' ,align:'center',renderer:function(val,item){
			return '<a href="javascript:void(0);" onClick="parent.change_tab(0,\'edit.jhtml?id='+item.id+'\')" class="red">'+val+'</a>';
		}},
		{ title:'${message("19110003")}', name:'name' ,align:'center' },
		{ title:'${message("19110004")}', name:'value' ,align:'center' },
		/*{ title:'${message("是否允许修改")}', name:'isModify' ,align:'center',renderer:function(val){
			if(val== true){
				return '<span class="trueIcon">&nbsp;</span>';
			}else{
				return '<span class="falseIcon">&nbsp;</span>';
			}
		}},*/
		{ title:'${message("19110005")}', name:'remark' ,align:'center' },
		{ title:'${message("1011")}', name:'createDate' ,align:'center' },
		
	];

	$mmGrid = $('#table-m1').mmGrid({
		autoLoad:true,
        cols: cols,
        fullWidthRows:true,
        url: 'list_data.jhtml',
        params:function(){
        	return $("#listForm").serializeObject();
        },
		plugins : [
            $('#paginator').mmPaginator()
        ]
    });
	
});
</script>
</head>
<body>
	<form id="listForm" action="list.jhtml" method="get">
		<div class="bar">
			<div class="buttonWrap">
			</div>
			<div class="search-btn">
				<a href="javascript:;" id="searchBtn" class="iconButton">${message("1004")}</a>
			</div>
			<div id="searchDiv">
			 <div id="search-content" >
        		<dl>
    				<dt ><p>${message("参数编码")}:</p></dt>
	    			<dd >
	    				<input type="text" class="text" id="code" name="code" btn-fun="clear"/>
	    			</dd>
	    		</dl>
	    		<dl>
    				<dt ><p>${message("参数名称")}:</p></dt>
	    			<dd >
	    				<input type="text" class="text" id="name" name="name" btn-fun="clear"/>
	    			</dd>
	    		</dl>
        	</div>
		</div>
		</div>
		
		<div class="table-responsive">
	        <table id="table-m1"></table>
	        <div id="body-paginator" style="text-align:left;">
	            <div id="paginator"></div>
	        </div>
		</div>
	</form>
</body>
</html>